package com.lp.order.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author LIPENGAK
 * @Description: 类描述
 * @date 2018-11-01 22:07
 */
@RestController
@RequestMapping("/config")
@RefreshScope
public class ConfigController {


    @Value("${env}")
    private String env;




    @GetMapping("/print")
    public String pring(){
        return env;
    }
}
